package org.microservice.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.microservice.common.bean.RoleVo;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/6/20
 * Time: 15:48
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Mapper
public interface SysRoleDao extends BaseMapper<RoleVo>{


    List<RoleVo> getUserRoleByUserId(@Param("userId") int userId);

    List<RoleVo> getRoleListPage(Map<String, Object> params);

    int getRoleListPageTotal(Map<String, Object> params);

    List<RoleVo> getRolesByUserName(@Param("userName") String userName);

}
